import { ChangeDetectionStrategy, Component } from '@angular/core';

@Component({
  selector: 'app-demo1',
  templateUrl: './demo1.component.html',
  styles: [``],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Demo1Component {
  value = [new Date('2020-01-11'), new Date('2020-01-13')];
  range = [new Date('2020-01-10'), new Date('2020-01-15')];

  onChange(event) {
    this.value = event;
    console.log('变化后的值是', event)
  };

  sliderDragEnd(event) {
    console.log('滑块拖动结束后的值', event);
  }
}
